home *** CD-ROM | disk | FTP | other *** search
- Path: sun001.spd.dsccc.com!spd!jmccarty
- From: jmccarty@spd.dsccc.com (Mike McCarty)
- Newsgroups: comp.lang.c
- Subject: Re: argv on VMS (was Re: Question on argv
- Date: 20 Feb 1996 00:30:39 GMT
- Organization: DSC Communications Corporation, Plano, Texas USA
- Message-ID: <4gb4nf$odp@sun001.spd.dsccc.com>
- References: <4eoq3c$45j@usenet.ucs.indiana.edu> <harmon.823153381@pegasus.montclair.edu> <TANMOY.96Feb10160209@qcd.lanl.gov> <hubey.824149407@pegasus.montclair.edu>
- NNTP-Posting-Host: aplo139.spd.dsccc.com
-
- In article <hubey.824149407@pegasus.montclair.edu>,
- H. M. Hubey <hubey@pegasus.montclair.edu> wrote:
-
- )I have a related question on argc and argv[] on VMS.
- )
- )I have a problem getting VMS to accept the commanline argument
- )to my program which expects one argument i.e. it should be
- )of the form
- )
- )$ uedit junk.dat
- )
- )It works fine on Unix but not on VMS since VMS needs the "run"
- )command so it becomes
- )
- )$ run uedit junk.dat
- )
- )so VMS apparently thinks that junk.dat modifies the run
- )command. I tried things like
- )
- )$run uedit/input=junk.dat
- )
- )etc but it won't work. What's the correct format for VMS?
-
- This is not a "C" question, but a VMS question. In any case, the answer
- is: install your command as a foreign command.
-
- $ uedit :== disk:[path]uedit.exe
-
- Then when you type uedit, your command line arguments will be visible.
-
- Mike
- ----
- char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
-
- I don't speak for DSC. <- They make me say that.
-